export function assemblesFromData(data) {
  var fromData = new FormData()
  if (data) {
    for (var prop in data) {
      if (data[prop] !== null) {
        fromData.append(prop, data[prop])
      } else {
        fromData.append(prop, '')
      }
    }
  }
  if (fromData) {
    return fromData
  } else {
    return new FormData()
  }
}
